home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_03
/
allison
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-07
|
309b
|
18 lines
LISTING 5 - Implementation of the assert macro
/* assert.h */
extern void __assert(char *, char *, long);
#undef assert
#ifdef NDEBUG
#define assert(cond)
(void) 0
#else
#define assert(cond) \
((cond) \
? (void) 0 \
: __assert(#cond,__FILE__,__LINE__))